package com.fhz.day007;

import androidx.lifecycle.LiveData;

import com.fhz.day007.core.IModel;
import com.fhz.day007.entity.Category;
import com.fhz.day007.server.ShopApi;
import com.fhz.day007.utils.RetrofitManger;
import com.fhz.utilsfhz.ApiResponse;

import java.util.List;

/**
 * 时间:2022/5/25
 *
 * @author msfeng
 * 简述: TODO
 */
public class MainModel implements IModel {

    public LiveData<ApiResponse<List<Category>>> getCategroy(int page){
        return RetrofitManger.getInstance().getRetrofit().create(ShopApi.class).getCategory(page);
    }
}

